#let book(title, doc) = {
  set page(
    paper: "a5",
    numbering: "1"
  )

  set text(
    12pt,
    font: "Songti SC"
  )

  set par(
    leading: .8em
  )

  show par: set block(spacing: 1.5em)

  set heading(
    numbering: "1.1"
  )

  set quote(block: true)

  align(center)[
    #set text(24pt, font: "PingFang SC")
    #title
  ]

  outline(
    title: "目录",
    indent: auto
  )

  pagebreak()

  show heading.where(level: 1): set heading(
    numbering: "第 1 章",
  )

  show raw: set text(
    font: (
      "JetBrains Mono",
      "PingFang SC"
    )
  )

  show raw.where(block: true): it => block(
    fill: rgb("f9f9f9"),
    inset: 8pt,
    radius: 4pt,
    width: 100%,
    it
  )

  [#doc]
}